﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WOWAPI : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		//WoWAPI.Character character = WoWAPI.Character.GetCharacter("Taunkah", "Doomhammer", "us");
		WoWAPI.Character character = WoWAPI.Character.GetCharacter("Teo", "Doomhammer", "us", 
			WoWAPI.Character.OptionalFields.Guild, 
			WoWAPI.Character.OptionalFields.Items, 
			WoWAPI.Character.OptionalFields.Stats,
			WoWAPI.Character.OptionalFields.Talents,
			WoWAPI.Character.OptionalFields.Reputation,
			WoWAPI.Character.OptionalFields.Titles,
			WoWAPI.Character.OptionalFields.Professions,
			WoWAPI.Character.OptionalFields.Appearance,
			WoWAPI.Character.OptionalFields.Pets,
			WoWAPI.Character.OptionalFields.Achievements,
			WoWAPI.Character.OptionalFields.Progression);
		WoWAPI.Guild guild = WoWAPI.Guild.GetGuild(character.Guild.Name, "Doomhammer", "us",
			WoWAPI.Guild.OptionalFields.Achievements,
			WoWAPI.Guild.OptionalFields.Members);
		WoWAPI.Realm[] realms = WoWAPI.Realm.GetRealms(new string[] { "Doomhammer", "Illidan" }, guild.Region);

		Response.Write(character.Name + " " + guild.Name + " " + realms[0].Type);
		Response.Write(" " + WoWAPI.Race.GetRaces(guild.Region)[0].Name);
		Response.Write(" " + WoWAPI.Class.GetClasses(guild.Region)[0].Name);
		Response.Write(" " + WoWAPI.Reward.GetRewards(guild.Region)[0].Achievement.Reward);
		Response.Write(" " + WoWAPI.Perk.GetPerks(guild.Region)[0].Spell.Name);
		//Response.Write(" " + WoWAPI.Item.GetItem(811, guild.Region));
    }
}